<!DOCTYPE html>
<html>
    <head>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p>
                {{name}}
            </p>
        </div>
        <script>
            var vm = new Vue({
                el:'#app',
                data:{
                    name:'定义初始数据！'
                }
            });
            console.log(vm.$data.name);
            console.log(vm.$el);
            console.log(vm.name);
        </script>
    </body>
</html>